import React from 'react';
import Layout from '../../../src/components/layout/Layout';
import Closure from '../../../src/components/pages/phases/Closure';
import { RingProps } from '../../../src/model/components/ring';
import getServerSidePropsRing from '../../../src/utils/ssr/getServerSidePropsRing';

const closure: React.FC<RingProps> = ({ ring, user }) => (
  <Layout title="Cierre" onDark mainClassName="phasePage video">
    <Closure ring={ring} user={user} />
  </Layout>
);

export const getServerSideProps = getServerSidePropsRing;

export default closure;
